<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>店铺资料修改页 - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/buy.css" type="text/css" rel="stylesheet" />
<link href="${sysResRoot}/front.css" rel="stylesheet" type="text/css"/>
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/ckeditor/ckeditor.js" type="text/javascript"></script>
<style type="text/css">
.sel-disabled{background-color:#ccc}
</style>
<script type="text/javascript">
function g(o){
	return document.getElementById(o);
}
$(function() {
	$("#jvForm").validate();
});

</script>
</head>
<body>
[#include "../include/店铺页头顶栏.html"/]
[#include "../common/image_upload.html"/]
<div class="w1168">
	[#include "店铺中心_导航.html"/]
	<div class="user_right">
    	<div class="user_title2">店铺基本设置</div>
    	<div class="clear10"></div> 
        <form id="jvForm" action="${base}/store/update.jspx" method="post">
        <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" style="font-family:Arial,宋体;" class="biaogeline">
        <tr>
        <td width="130" height="40" align="right" style="font-size:12px; color:#666666;">店铺名称：</td>
        <td>${store.storeName!}</td>
        </tr>
        <tr>
        <td height="40" align="right" style="font-size:12px; color:#666666;">店铺简称 ：</td>
        <td><input type="text" id="shortName" name="shortName" value="${store.shortName!}" class="address_input required" /></td>
        </tr>
        <tr>
        <td height="40" align="right" style="font-size:12px; color:#666666;">
        <font color="red">*</font>店铺类目：</td>
        <td>
        <select name="categoryId" class="dzinput">
        <option value="">--请选择--</option>
        [#if categoryList?size gt 0]
        [#assign origDeep=categoryList[0].deep+1/]
        [#list categoryList as c]
        <option [#if store.category.id==c.id]selected="selected"[/#if] value="${c.id}"[#if c.child?size gt 0] class="sel-disabled"[/#if]>[#if c.deep gte origDeep][#list origDeep..c.deep as i]&nbsp;&nbsp;[/#list]>[/#if]${c.name}</option>
        [/#list]
        [/#if]
        </select>
        </td>
        </tr>
        <!--
        [#if store.modelpermission]
        <tr>
        <td height="30" align="right" style="font-size:12px; color:#666666;">
        <font color="red">*</font>店铺模板：</td>
        <td><select id="storeModelId" name="storeModelId" style="width:200px;">
        [#list smlist as storeModel]
        <option value="${storeModel.id}" [#if storeModel.id=store.storeModel.id]selected="selected"[/#if]>${storeModel.modelName}</option>
        [/#list]
        </select>
        </td>
        </tr>
        [#else]
        <input type="hidden" id="storeModelId" name="storeModelId" value="${storeModel.id}"/>
        [/#if]
        <tr>
        -->
        <td height="130" align="right" style="font-size:12px; color:#666666;">店铺简介：</td>
        <td><textarea name="intro"  rows="5" cols="50" class="address_input" style="height:100px; width:600px; padding:5px;">${store.intro}</textarea></td>
        </tr>
        <tr>
        <td height="100" align="right" style="font-size:12px; color:#666666;"><font color="red">*</font>店铺LOGO：</td>
        <td>
        <div class="clear10"></div>
        <img id="preImg1" alt="预览" src="${uploadRoot!}${store.logoImg!}"  style="width:100px;height:100px;background-color:#fff;border:1px solid #999; text-align:center;"/>
        <div class="clear10"></div>
        <input type="text" id="uploadImgPath1" name="logoImg" value="${store.logoImg!}" class="required address_input" size="30"/>        
        <input type="button" value="清空" onclick="clearImg(1);" class="menu_ok"/>
        <div class="clear10"></div>
        <span id="ufc1"><input type="file" id="uploadFile1" size="20"/></span> 
        <input type="button" value="上传" onclick="upload(1);" class="menu_ok"/>
        <div class="clear10"></div>
        <input type="hidden" id="zoomWidth1" value="100"/> 
        <input type="hidden" id="zoomHeight1" value="100" /> </td>
        </tr>
        <tr>
        <td height="100" align="right" style="font-size:12px; color:#666666;">
        <font color="red">*</font>营业执照图片：
        </td>
        <td>
        <div class="clear10"></div>
        <img id="preImg2" alt="预览" src="${uploadRoot!}${store.licenseImg!}"  style="width:100px;height:100px;background-color:#fff;border:1px solid #999; text-align:center;"/><br/>
        <input type="text" id="uploadImgPath2" name="licenseImg" value="${store.licenseImg!}" class="required address_input" size="30"/>        
        <input type="button" value="清空" onclick="clearImg(2);" class="menu_ok"/>
        <div class="clear10"></div>
        <span id="ufc2"><input type="file" id="uploadFile2" size="20"/></span> 
        <input type="button" value="上传" onclick="upload(2);" class="menu_ok"/>
        <div class="clear10"></div>
        <input type="hidden" id="zoomWidth2" value="100"/> 
        <input type="hidden" id="zoomHeight2" value="100" /> 
        </td>
        </tr>
        <tr>
        <td height="100" align="right" style="font-size:12px; color:#666666;">
        <font color="red">*</font>身份证正面图片：
        </td>
        <td>
        <div class="clear10"></div>
        <img id="preImg3" alt="预览" src="${uploadRoot!}${store.facadeImg!}" style="width:100px;height:100px;background-color:#fff;border:1px solid #999; text-align:center;"/><br/>
        <input type="text" id="uploadImgPath3" name="facadeImg" value="${store.facadeImg!}" class="required address_input" size="30"/>        
        <input type="button" value="清空" onclick="clearImg(3);" class="menu_ok"/>
        <div class="clear10"></div>
        <span id="ufc3"><input type="file" id="uploadFile3" size="20"/></span> 
        <input type="button" value="上传" onclick="upload(3);" class="menu_ok"/>
        <div class="clear10"></div>
        <input type="hidden" id="zoomWidth3" value="100"/> 
        <input type="hidden" id="zoomHeight3" value="100" /> 
        </td>
        </tr>
        <tr>
        <td height="100" align="right" style="font-size:12px; color:#666666;">
        <font color="red">*</font>身份证反面图片：
        </td>
        <td>
        <div class="clear10"></div>
        <img id="preImg4" alt="预览" src="${uploadRoot!}${store.reverseImg!}"  style="width:100px;height:100px;background-color:#fff; border:1px solid #999; text-align:center;"/><br/>
        <input type="text" id="uploadImgPath4" name="reverseImg" value="${store.reverseImg!}" class="required address_input" size="30"/>        
        <input type="button" value="清空" onclick="clearImg(4);" class="menu_ok"/>
        <div class="clear10"></div>
        <span id="ufc4"><input type="file" id="uploadFile4" size="20"/></span> 
        <input type="button" value="上传" onclick="upload(4);" class="menu_ok"/>
        <div class="clear10"></div>
        <input type="hidden" id="zoomWidth4" value="100"/> 
        <input type="hidden" id="zoomHeight4" value="100" /> 
        </td>
        </tr>
        <tr>
        <td height="40" align="right" style="font-size:12px; color:#666666;">公司详细地址：</td>
        <td><input type="text" id="address" name="address" value="${store.address}" class="address_input"/></td>
        </tr>
        <tr>
        <td height="40" align="right" style="font-size:12px; color:#666666;"> 公司固定电话：</td>
        <td><input type="text" id="mobile" name="mobile" value="${store.mobile}" class="address_input"/></td>
        </tr>
        <tr>
        <td height="40" align="right" style="font-size:12px; color:#666666;">邮政编码：</td>
        <td><input type="text" id="postcode" name="postcode" value="${store.postcode!}" class="address_input"/></td>
        </tr>
        <tr>
        <td height="460" align="right" style="font-size:12px; color:#666666;">店铺介绍：</td>
        <td>
        <textarea id="txt" name="txt" class="address_input" style="height:100px; width:600px; padding:5px;">${store.txt!}</textarea>  
        <script type="text/javascript">
        $(function() {
        CKEDITOR.replace( 'txt' ,
        {
        filebrowserUploadUrl : '${base}/fck/upload.jspx',  
        filebrowserImageUploadUrl : '${base}/fck/upload.jspx?Type=Image',  
        filebrowserFlashUploadUrl : '${base}/fck/upload.jspx?Type=Flash',
        filebrowserMediaUploadURL : '${base}/fck/upload.jspx?Type=Media'
        }
        );  
        });
        </script>
        </td>
        </tr>
        <tr>
        <td height="50">&nbsp;</td>
        <td>
        <input type="hidden" name="id" value="${store.id}"/>
        <input type="submit" value="提交" class="menu_ok"/>
        &nbsp; <input type="reset" value="重置" class="menu_ok"/>
        <input type="hidden" name="backUrl" value="${location}"/></td>
        </tr>
        </table>
      </form>
    </div>
	<div class="clear20"></div>
</div>
[#--<p>[#include 'inc_member_function.html'/]</p>
<div>[@process_time/]</div>
--]
[#include "../include/页脚信息栏.html"/]
</body>
</html>